<template>
    <input type="text" placeholder="添加要做的事。。。" v-model="Input">
    <button type="submit" @click="addFn"><span>提交</span></button>
</template>
<script setup>
import {ref,defineEmits} from "vue"
let Input =ref("")
console.log(Input)
let emit = defineEmits(['add'])
let addFn = ()=>{
    emit("add",Input.value)
}
</script>